home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
utility
/
603
/
emacs
/
cmd
/
stkeypad.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1992-03-14
|
2KB
|
101 lines
store-procedure insert-leftparen
insert-string (
!endm
store-procedure insert-rightparen
insert-string )
!endm
store-procedure insert-slash
insert-string /
!endm
store-procedure insert-asterisk
insert-string "*"
!endm
store-procedure insert-seven
insert-string 7
!endm
store-procedure insert-eight
insert-string 8
!endm
store-procedure insert-nine
insert-string 9
!endm
store-procedure insert-minus
insert-string -
!endm
store-procedure insert-four
insert-string 4
!endm
store-procedure insert-five
insert-string 5
!endm
store-procedure insert-six
insert-string 6
!endm
store-procedure insert-plus
insert-string +
!endm
store-procedure insert-one
insert-string 1
!endm
store-procedure insert-two
insert-string 2
!endm
store-procedure insert-three
insert-string 3
!endm
store-procedure insert-newline
insert-string ~n
!endm
store-procedure insert-zero
insert-string 0
!endm
store-procedure insert-dot
insert-string .
!endm
macro-to-key insert-leftparen FN^(
macro-to-key insert-rightparen FN^)
macro-to-key insert-slash FN^/
macro-to-key insert-asterisk FN^*
macro-to-key insert-seven FN^7
macro-to-key insert-eight FN^8
macro-to-key insert-nine FN^9
macro-to-key insert-minus FN^@
macro-to-key insert-four FN^4
macro-to-key insert-five FN^5
macro-to-key insert-six FN^6
macro-to-key insert-plus FN^D
macro-to-key insert-one FN^1
macro-to-key insert-two FN^2
macro-to-key insert-three FN^3
macro-to-key insert-newline FN^E
macro-to-key insert-zero FN^0
macro-to-key insert-dot FN^.
bind-to-key delete-next-character FNI
bind-to-key delete-next-character ^?
bind-to-key beginning-of-file FND
bind-to-key end-of-line S-FNF
bind-to-key beginning-of-line S-FNB
bind-to-key previous-page S-FNP
bind-to-key next-page S-FNN
macro-to-key get-help FNH
; Rebind some keys:
!force unbind-key ^S
!force unbind-key ^X-S
!force unbind-key ^R
!force unbind-key ^X-R
!force unbind-key ^Z
bind-to-key incremental-search ^S
bind-to-key search-forward ^XS
bind-to-key reverse-incremental-search ^R
bind-to-key search-reverse ^XR
bind-to-key query-replace-string M-%
!if &seq &left $osystem 4 "MiNT"
bind-to-key suspend-emacs ^Z
!endif
write-message "[Numeric keypad defined]"